/*
Copyright SecureKey Technologies Inc. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package ichain

import (
	pb "git.cloud.inspur.com/ichain/ichain-protos-go/inode"
)

type TransactionRequest struct {
	Proposal          *TransactionProposal
	ProposalResponses []*TransactionProposalResponse
}

type Sender interface {
	NewTx(request TransactionRequest) (*Transaction, error)
	SendTx(tx *Transaction) (*TransactionResponse, error)
}

type Transaction struct {
	Proposal    *TransactionProposal
	Transaction *pb.Transaction
}

type TransactionResponse struct {
	Consenser string
}
